package com.zzyl.mapper;

import com.zzyl.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select id,real_name from sys_user")
    List<User> selectAll();

    @Select("select * from sys_user where username = #{Username}")
    User selectByUsername(String Username);
}
